#include "app_mqtt.h"

static int recv_callback (char *message)
{
    log_info(" recv message.......: %s\n", message);
    return 0;
}


int main(int argc, char const *argv[])
{
    app_mqtt_init();

    app_mqtt_register_callback(recv_callback);

    char  msg[]=" {\"device_id \": 1 ,\"motor_status\":\"on\" ,\"cur_angle\":3600}";
    app_mqtt_send(msg);

    while(1)
    {
        sleep(1000);
    }

   // app_mqtt_destroy();

    return 0;
}
